#! /bin/bash

#This is a test suite

echo "Test Case 1: Testing 23/23..."
tc=`java -jar Grades_v2.jar 23 23`
if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi


echo "Test Case 2: Testing 56/52..."
tc=`java -jar Grades_v2.jar 56 52`
if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 3: Testing 90/90..."
tc=`java -jar Grades_v2.jar 90 90`
if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 4: Testing 5/11..."
tc=`java -jar Grades_v2.jar 5 11`
if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

echo "Test Case 5: Testing 100/100..."
tc=`java -jar Grades_v2.jar 100 100`
if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi





echo =======================
echo test report statistics
echo ========================




